package com.chuangjiangx.member.stored.dao.model;

import java.math.BigDecimal;
import java.util.Date;

public class InMbrOrder {
    private Long id;

    private String orderNumber;

    private Integer type;

    private Long merchantUserId;

    private Long merchantId;

    private Long storeId;

    private Long storeUserId;

    private Long memberId;

    private BigDecimal orderAmount;

    private BigDecimal discountAmount;

    private BigDecimal paidAmount;

    private BigDecimal refundAmount;

    private Date createTime;

    private Date updateTime;

    private Date paidTime;

    private Date refundTime;

    private Long mbrHasCouponId;

    private Integer status;

    private Integer payEntry;

    private Integer payType;

    private String remark;

    private Integer payTerminal;

    private String orderPayNumber;

    private Long mbrRechargeRuleId;

    private String phoneNumber;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber == null ? null : orderNumber.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getMerchantUserId() {
        return merchantUserId;
    }

    public void setMerchantUserId(Long merchantUserId) {
        this.merchantUserId = merchantUserId;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    public Long getStoreUserId() {
        return storeUserId;
    }

    public void setStoreUserId(Long storeUserId) {
        this.storeUserId = storeUserId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public BigDecimal getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = orderAmount;
    }

    public BigDecimal getDiscountAmount() {
        return discountAmount;
    }

    public void setDiscountAmount(BigDecimal discountAmount) {
        this.discountAmount = discountAmount;
    }

    public BigDecimal getPaidAmount() {
        return paidAmount;
    }

    public void setPaidAmount(BigDecimal paidAmount) {
        this.paidAmount = paidAmount;
    }

    public BigDecimal getRefundAmount() {
        return refundAmount;
    }

    public void setRefundAmount(BigDecimal refundAmount) {
        this.refundAmount = refundAmount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getPaidTime() {
        return paidTime;
    }

    public void setPaidTime(Date paidTime) {
        this.paidTime = paidTime;
    }

    public Date getRefundTime() {
        return refundTime;
    }

    public void setRefundTime(Date refundTime) {
        this.refundTime = refundTime;
    }

    public Long getMbrHasCouponId() {
        return mbrHasCouponId;
    }

    public void setMbrHasCouponId(Long mbrHasCouponId) {
        this.mbrHasCouponId = mbrHasCouponId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getPayEntry() {
        return payEntry;
    }

    public void setPayEntry(Integer payEntry) {
        this.payEntry = payEntry;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Integer getPayTerminal() {
        return payTerminal;
    }

    public void setPayTerminal(Integer payTerminal) {
        this.payTerminal = payTerminal;
    }

    public String getOrderPayNumber() {
        return orderPayNumber;
    }

    public void setOrderPayNumber(String orderPayNumber) {
        this.orderPayNumber = orderPayNumber == null ? null : orderPayNumber.trim();
    }

    public Long getMbrRechargeRuleId() {
        return mbrRechargeRuleId;
    }

    public void setMbrRechargeRuleId(Long mbrRechargeRuleId) {
        this.mbrRechargeRuleId = mbrRechargeRuleId;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderNumber=").append(orderNumber);
        sb.append(", type=").append(type);
        sb.append(", merchantUserId=").append(merchantUserId);
        sb.append(", merchantId=").append(merchantId);
        sb.append(", storeId=").append(storeId);
        sb.append(", storeUserId=").append(storeUserId);
        sb.append(", memberId=").append(memberId);
        sb.append(", orderAmount=").append(orderAmount);
        sb.append(", discountAmount=").append(discountAmount);
        sb.append(", paidAmount=").append(paidAmount);
        sb.append(", refundAmount=").append(refundAmount);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", paidTime=").append(paidTime);
        sb.append(", refundTime=").append(refundTime);
        sb.append(", mbrHasCouponId=").append(mbrHasCouponId);
        sb.append(", status=").append(status);
        sb.append(", payEntry=").append(payEntry);
        sb.append(", payType=").append(payType);
        sb.append(", remark=").append(remark);
        sb.append(", payTerminal=").append(payTerminal);
        sb.append(", orderPayNumber=").append(orderPayNumber);
        sb.append(", mbrRechargeRuleId=").append(mbrRechargeRuleId);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InMbrOrder other = (InMbrOrder) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderNumber() == null ? other.getOrderNumber() == null : this.getOrderNumber().equals(other.getOrderNumber()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getMerchantUserId() == null ? other.getMerchantUserId() == null : this.getMerchantUserId().equals(other.getMerchantUserId()))
            && (this.getMerchantId() == null ? other.getMerchantId() == null : this.getMerchantId().equals(other.getMerchantId()))
            && (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId()))
            && (this.getStoreUserId() == null ? other.getStoreUserId() == null : this.getStoreUserId().equals(other.getStoreUserId()))
            && (this.getMemberId() == null ? other.getMemberId() == null : this.getMemberId().equals(other.getMemberId()))
            && (this.getOrderAmount() == null ? other.getOrderAmount() == null : this.getOrderAmount().equals(other.getOrderAmount()))
            && (this.getDiscountAmount() == null ? other.getDiscountAmount() == null : this.getDiscountAmount().equals(other.getDiscountAmount()))
            && (this.getPaidAmount() == null ? other.getPaidAmount() == null : this.getPaidAmount().equals(other.getPaidAmount()))
            && (this.getRefundAmount() == null ? other.getRefundAmount() == null : this.getRefundAmount().equals(other.getRefundAmount()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getPaidTime() == null ? other.getPaidTime() == null : this.getPaidTime().equals(other.getPaidTime()))
            && (this.getRefundTime() == null ? other.getRefundTime() == null : this.getRefundTime().equals(other.getRefundTime()))
            && (this.getMbrHasCouponId() == null ? other.getMbrHasCouponId() == null : this.getMbrHasCouponId().equals(other.getMbrHasCouponId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getPayEntry() == null ? other.getPayEntry() == null : this.getPayEntry().equals(other.getPayEntry()))
            && (this.getPayType() == null ? other.getPayType() == null : this.getPayType().equals(other.getPayType()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getPayTerminal() == null ? other.getPayTerminal() == null : this.getPayTerminal().equals(other.getPayTerminal()))
            && (this.getOrderPayNumber() == null ? other.getOrderPayNumber() == null : this.getOrderPayNumber().equals(other.getOrderPayNumber()))
            && (this.getMbrRechargeRuleId() == null ? other.getMbrRechargeRuleId() == null : this.getMbrRechargeRuleId().equals(other.getMbrRechargeRuleId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderNumber() == null) ? 0 : getOrderNumber().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getMerchantUserId() == null) ? 0 : getMerchantUserId().hashCode());
        result = prime * result + ((getMerchantId() == null) ? 0 : getMerchantId().hashCode());
        result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode());
        result = prime * result + ((getStoreUserId() == null) ? 0 : getStoreUserId().hashCode());
        result = prime * result + ((getMemberId() == null) ? 0 : getMemberId().hashCode());
        result = prime * result + ((getOrderAmount() == null) ? 0 : getOrderAmount().hashCode());
        result = prime * result + ((getDiscountAmount() == null) ? 0 : getDiscountAmount().hashCode());
        result = prime * result + ((getPaidAmount() == null) ? 0 : getPaidAmount().hashCode());
        result = prime * result + ((getRefundAmount() == null) ? 0 : getRefundAmount().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getPaidTime() == null) ? 0 : getPaidTime().hashCode());
        result = prime * result + ((getRefundTime() == null) ? 0 : getRefundTime().hashCode());
        result = prime * result + ((getMbrHasCouponId() == null) ? 0 : getMbrHasCouponId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getPayEntry() == null) ? 0 : getPayEntry().hashCode());
        result = prime * result + ((getPayType() == null) ? 0 : getPayType().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getPayTerminal() == null) ? 0 : getPayTerminal().hashCode());
        result = prime * result + ((getOrderPayNumber() == null) ? 0 : getOrderPayNumber().hashCode());
        result = prime * result + ((getMbrRechargeRuleId() == null) ? 0 : getMbrRechargeRuleId().hashCode());
        return result;
    }
}